<template>
  <div>
     <div class="search">
        <div class="location">
          <span class="city">上海</span>
          <van-icon name="arrow-down" />
        </div>
        <div class="formInp">
          <van-icon name="search" />
          <span class="text">请输入小区或地址</span>
        </div>
      </div>
      <div id="icoMap">
        <van-icon name="aim" />
      </div>
  </div>
</template>

<script>
export default {
  data () {
    return {}
  },
  methods: {}
}
</script>

<style scoped lang='less'>
 .search {
    display: flex;
    align-items: center;
    width: 310px;
    height: 35px;
    border-radius: 5px;
    background-color: pink;
    margin: 0 auto;
    padding: 0 8px;
    font-size: 15px;
    .location {
      .city {
        margin-right: 5px;
      }
      .van-icon-arrow-down {
        font-size: 14px;
      }
    }
    .formInp {
      margin-left: 20px;
      border-left: 1px solid #e6e6e6;
      color: #9ca0a2;
      font-size: 14px;
      .van-icon-search {
        font-size: 18px;
        margin: 0 8px 0 10px;
      }
    }
  }
  .van-icon-aim {
    font-size: 25px;
    color: white;
  }
</style>
